<ng-container *ngFor="let page of pages; let last = last">
  <a [routerLink]="[page]">{{page}}</a>
  <span *ngIf="!last">|</span>
</ng-container>

<hr>
<router-outlet></router-outlet>
